<?php
namespace app\common\enum;

class GroupBuyingPromotionStatus extends Base
{
	protected static $options = [0 => '待支付', 1 => '已支付', 2 => '已分佣', '-1' => '已取消', '-2' => '已退货'];
    protected static $codeOptions = ['daizhifu' => 0, 'yizhifu' => 1, 'yifenyong' => 2, 'yiquxiao' => -1, 'yituihuo' => -2];

    public static function code2key($code) {
        return static::$codeOptions[$code];
    }

    public static function isPayStatus() {
    	return [1, 2];
    }
}
